public class test {
    public static void main(String[] args) {
        SingleLinkedList  singleLinkedList=new SingleLinkedList();
        singleLinkedList.creatList();
        System.out.println(singleLinkedList.size());
        singleLinkedList.display();
        singleLinkedList.addFirst(100);
        singleLinkedList.addLast(100);
        singleLinkedList.addIndex(2,900);
        singleLinkedList.remove(10);
        singleLinkedList.display();
        System.out.println(singleLinkedList.size());
        System.out.println();
        singleLinkedList.removeAllKey(100);
        singleLinkedList.display();
        System.out.println();
        singleLinkedList.clear();
        singleLinkedList.display();
    }
}

